package com.stu.ai.goods.service.impl;

import com.stu.ai.goods.dao.StoreDao;
import com.stu.ai.goods.domain.Store;
import com.stu.ai.goods.service.StoreManager;
import com.stu.ai.service.impl.GenericTreeManagerImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import javax.transaction.Transactional;



@Component
@Transactional
public class StoreManagerlmpl extends GenericTreeManagerImpl<Store, Long> implements StoreManager {


    StoreDao storeDao;

    @Autowired
    public void setStoreDao(StoreDao storeDao) {
        this.storeDao = storeDao;
        this.treeDao = this.storeDao;
        this.dao = this.treeDao;
    }
}